﻿@model List<Sys_Menu>
<div class="form-group">
    <div class="btn-group-sm">
        <button type="button" class="btn btn-info " id="btnQuery">
            <i class="@ActionTypeHelper.GetDefaultIcon(ActionTypeEnum.Search)"></i>&nbsp;查询</button>
        @if (Model != null && Model.Count > 0)
        {
            foreach (var item in Model)
            {
                var btnID = string.Format("btn{0}{1}", item.ControllerName, item.ActionName);
                if (item.ActionType == ActionTypeEnum.Delete)
                {
                    <button type="button" class="btn btn-danger" id="@btnID"><i class="@item.Icon"></i>&nbsp;@item.MenuName</button>
                }
                else
                {
                    <button type="button" class="btn btn-info" id="@btnID"><i class="@item.Icon"></i>&nbsp;@item.MenuName</button>
                }
            }
        }
    </div>
</div>
